from django.db import models
from apps.utils.db import table_prefix, BaseModel, CoreModel



class Images(CoreModel):
    """
    图片表
    """
    name = models.CharField(verbose_name='名称', help_text='名称', max_length=100, null=True, blank=True)
    size = models.IntegerField(verbose_name='文件大小', help_text='文件大小', default=1, null=True, blank=True)
    file = models.CharField(verbose_name='图片路径', help_text='图片路径', max_length=255)


    class Meta:
        db_table = table_prefix + 'images'
        verbose_name = '图片表'
        verbose_name_plural = verbose_name
